from selenium.webdriver.common.by import By

from common.logger import logger
from common.pagebase import Base
from page.page_forgot import Forgot
from page.page_login import Login


# 继承基类，统一管理page
class Page_Index(Base):

    # 点击登录
    def index_login(self):
        logger.info("输入账号密码，点击登录")
        return Login(self.driver)

    # 点击忘记密码
    def index_forgot(self):
        logger.info("点击忘记密码")
        return Forgot(self.driver)

